How to make a layout full screen for custom keyboard view in android -


i have keyboard user can switch between 2 different view. according selection return layout in oncreateinputview()

layout = (relativelayout)getlayoutinflater().inflate(r.layout.activity_main, null);  return layout; 

xml of layout

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="fill_parent"     android:layout_height="match_parent"     android:paddingbottom="@dimen/activity_vertical_margin"     android:background="#fff"     android:layout_alignparenttop="true"     tools:context="com.main.mainactivity"       >      <button          android:id="@+id/tag"         android:layout_width="150dp"         android:layout_height="50dp"         android:layout_alignparenttop="true"         android:layout_alignparentleft="true"         android:text="#test"         android:visibility="visible"         android:singleline="true"/>       <imagebutton          android:id="@+id/popular"         android:layout_width="50dp"         android:layout_height="50dp"         android:layout_toleftof="@+id/mycaps"         android:src="@drawable/connection"         android:visibility="visible"         android:background="@null"         android:layout_marginright="5dp"/>       <button          android:id="@+id/mycaps"         android:layout_width="50dp"         android:layout_height="50dp"         android:layout_alignparenttop="true"         android:layout_alignparentright="true"         android:drawablestart="@drawable/like"         android:visibility="visible"          android:background="@null"/>      <!-- <gridview          android:id="@+id/gridview_images"         android:layout_width="fill_parent"         android:layout_height="150dp"         android:layout_below="@+id/mycaps"         android:columnwidth="80dp"         android:numcolumns="5"         android:stretchmode="none"          android:layout_marginbottom="20dp"          >       </gridview> -->       <com.jess.ui.twowaygridview     xmlns:android="http://schemas.android.com/apk/res/android"      xmlns:app="http://schemas.android.com/apk/res-auto"     android:background="#e8e8e8"     android:id="@+id/gridview_images"     android:layout_width="fill_parent"      android:layout_height="150dp"     app:cachecolorhint="#e8e8e8"     android:layout_below="@+id/mycaps"     app:columnwidth="80dp"     app:rowheight="80dp"     app:numcolumns="2"     app:numrows="2"     app:verticalspacing="0dp"     app:horizontalspacing="0dp"     app:stretchmode="none"     app:scrolldirectionportrait="horizontal"     app:scrolldirectionlandscape="horizontal"     app:gravity="center"/>  <com.jess.ui.twowaygridview     xmlns:android="http://schemas.android.com/apk/res/android"      xmlns:app="http://schemas.android.com/apk/res-auto"     android:background="#e8e8e8"     android:id="@+id/gridview_tags"     android:layout_width="fill_parent"      android:layout_height="150dp"     app:cachecolorhint="#e8e8e8"     android:layout_below="@+id/gridview_images"     app:columnwidth="80dp"     app:rowheight="80dp"     app:numcolumns="2"     app:numrows="2"     app:verticalspacing="0dp"     app:horizontalspacing="0dp"     app:stretchmode="none"     app:scrolldirectionportrait="horizontal"     app:scrolldirectionlandscape="horizontal"     app:gravity="center"     android:visibility="gone"/>  <!--      <gridview -->  <!--         android:id="@+id/gridview_tags" --> <!--         android:layout_width="fill_parent" --> <!--         android:layout_height="150dp" --> <!--         android:columnwidth="80dp" --> <!--         android:layout_below="@+id/gridview_images" --> <!--         android:numcolumns="5" --> <!--         android:stretchmode="none"  --> <!--         android:layout_marginbottom="20dp" --> <!--         android:visibility="gone" --> <!--         > -->  <!--      </gridview> -->        <edittext           android:id="@+id/inputtext"          android:layout_below="@+id/gridview_tags"          android:layout_width="fill_parent"          android:layout_height="50dp"          android:background="@drawable/edit_textfield"          android:hint="message"          android:padding="5dp"          android:visibility="gone"/>        <linearlayout           android:id="@+id/buttons"          android:layout_width="match_parent"          android:layout_height="wrap_content"          android:layout_below="@+id/inputtext"          android:orientation="horizontal"          android:visibility="gone"          >        <button           android:id="@+id/b1"          android:layout_width="wrap_content"          android:layout_height="wrap_content"          android:layout_weight="1"          android:text="..."          android:textsize="10sp"          android:singleline="true"         />        <button           android:id="@+id/b2"          android:layout_width="wrap_content"          android:layout_height="wrap_content"          android:layout_weight="1"          android:text="..."          android:textsize="10sp"          android:singleline="true"         />        <button            android:id="@+id/b3"           android:layout_width="wrap_content"           android:layout_height="wrap_content"           android:layout_weight="1"           android:text="..."           android:textsize="10sp"           android:singleline="true"           />         <button            android:id="@+id/b4"           android:layout_width="wrap_content"           android:layout_height="wrap_content"           android:layout_weight="1"           android:text="..."           android:textsize="12sp"           />        </linearlayout>      <!--       <gridview        android:id="@+id/gridview_keys"      android:layout_width="fill_parent"     android:layout_height="150dp"     android:layout_below="@+id/inputtext"     android:columnwidth="150dp"     android:gravity="center"     android:layout_centerhorizontal="true"     android:numcolumns="4"     android:stretchmode="columnwidth"     android:layout_marginbottom="20dp"     android:visibility="gone"/> -->   <com.main.mykeyboardview     xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/keyboard1"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:layout_below="@+id/buttons"     android:keybackground="@color/background_color"     android:keytextcolor="#000000"     android:keytextsize="26sp"     android:keypreviewlayout ="@layout/preview"     android:background="#ffffff" />     </relativelayout> 

the problem when trying layout full screen in device not becoming full screen. @ top of layout shows layout of application in application opened.

what needs done solve it?? or not possible

** keyboard not application specific , can open @ application done , shares image.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -