Not able to see the whole page after launching the application in android -
Not able to see the whole page after launching the application in android -
when trying launch may application not able se the whole page.i have added # button.but 2 buttons visible.how should create comaptible emulator can se whaever there in pages.
here code:
this xml file
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" tools:context="com.example.button.buttonactivity$placeholderfragment" > <textview android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:text="this area administer mulitple persons maintaining records." /> <button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/textview1" android:layout_centerhorizontal="true" android:layout_margintop="52dp" android:text="add new person" /> <textview android:id="@+id/textview2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignleft="@+id/textview1" android:layout_below="@+id/button1" android:layout_margintop="22dp" android:text="current person" /> <button android:id="@+id/button3" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignleft="@+id/button2" android:layout_below="@+id/button2" android:layout_margintop="27dp" android:text="switch person" /> <button android:id="@+id/button2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/textview2" android:layout_centerhorizontal="true" android:layout_margintop="27dp" android:text="rename person" /> <button android:id="@+id/button4" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/button3" android:layout_centerhorizontal="true" android:layout_margintop="27dp" android:text="delete person" /> </relativelayout> manifestfile <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.button" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="8" android:targetsdkversion="19" /> <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name="com.example.button.buttonactivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> </application> </manifest> please suggest something..
try this!:
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" tools:context="com.example.button.buttonactivity$placeholderfragment" > <scrollview android:id="@+id/scrollviewtopicgrade" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:color/transparent" > <relativelayout android:layout_width="fill_parent" android:layout_height="fill_parent" > <textview android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:text="this area administer mulitple persons maintaining records." /> <button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/textview1" android:layout_centerhorizontal="true" android:layout_margintop="52dp" android:text="add new person" /> <textview android:id="@+id/textview2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignleft="@+id/textview1" android:layout_below="@+id/button1" android:layout_margintop="22dp" android:text="current person" /> <button android:id="@+id/button3" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignleft="@+id/button2" android:layout_below="@+id/button2" android:layout_margintop="27dp" android:text="switch person" /> <button android:id="@+id/button2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/textview2" android:layout_centerhorizontal="true" android:layout_margintop="27dp" android:text="rename person" /> <button android:id="@+id/button4" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/button3" android:layout_centerhorizontal="true" android:layout_margintop="27dp" android:text="delete person" /> </relativelayout> </scrollview> </relativelayout> hope may help you
android android-layout android-activity android-fragments
Comments
Post a Comment