내 활동에 로그인 양식이 있습니다.Android. 편집 텍스트를 클릭 할 때 콘텐츠 올리기
http://www.clipular.com/c/6455748191322112.png?k=Xc28Y-FsMShuNpEXbWD5rpe6faY http://www.clipular.com/c/5414772807041024.png?k=k3TB9AiHEtdV8oh6G17Ag-MS2nI
내가이 작업을 수행 할 수있는 방법 :이 논리를해야합니까? 매니페스트에서 을 Activity
으로 설정하려고했으나 작동하지 않았습니다.
내 레이아웃 :
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/truck">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/logo"
android:layout_width="@dimen/login_logo_width"
android:layout_height="@dimen/login_logo_height"
android:layout_marginTop="@dimen/login_logo_margin_top"
android:layout_marginStart="@dimen/login_logo_margin_left"
android:src="@drawable/logo_transfort_white"
android:contentDescription="@string/logo_title"/>
<TextView
android:id="@+id/skip"
style="@style/GrayText"
android:layout_width="wrap_content"
android:layout_height="@dimen/default_text_height"
android:layout_alignEnd="@id/logo"
android:layout_alignParentEnd="true"
android:layout_marginEnd="@dimen/skip_button_margin_right"
android:layout_marginTop="@dimen/skip_button_margin_top"
android:gravity="center"
android:text="@string/skip" />
<LinearLayout
android:id="@+id/inputs"
android:background="@drawable/login_buttons_background"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/inputs_block_margin_top"
android:layout_marginStart="@dimen/inputs_block_margin_left_right"
android:layout_marginEnd="@dimen/inputs_block_margin_left_right"
android:layout_below="@id/logo"
android:orientation="vertical"
android:descendantFocusability="beforeDescendants"
android:focusableInTouchMode="true">
<EditText
android:id="@+id/login"
android:layout_width="match_parent"
android:layout_height="@dimen/default_text_height"
android:layout_marginTop="@dimen/inputs_block_margin_left_right"
android:layout_marginStart="@dimen/inputs_block_margin_left_right"
android:background="@color/text_color_white_transparent"
android:ems="16"
android:hint="@string/login"
style="@style/LoginInputs"/>
<View
android:id="@+id/inputs_line"
android:layout_width="wrap_content"
android:layout_height="@dimen/login_line_height"
android:layout_marginTop="@dimen/login_line_margin_top"
android:layout_marginStart="@dimen/inputs_block_margin_left_right"
android:layout_marginEnd="@dimen/inputs_block_margin_left_right"
android:background="@color/line_color_white_capacity" />
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="@dimen/default_text_height"
android:layout_marginTop="@dimen/login_line_margin_top"
android:layout_marginStart="@dimen/inputs_block_margin_left_right"
android:layout_marginBottom="@dimen/inputs_block_margin_left_right"
android:background="@color/text_color_white_transparent"
android:ems="16"
android:hint="@string/password"
android:inputType="textPassword"
style="@style/LoginInputs" />
</LinearLayout>
<TextView
android:id="@+id/forgot_password"
android:layout_width="wrap_content"
android:layout_height="@dimen/default_text_height"
android:layout_below="@id/inputs"
android:layout_alignParentEnd="true"
android:layout_marginTop="@dimen/forgot_password_margin_top"
android:layout_marginEnd="@dimen/inputs_block_margin_left_right"
android:text="@string/forgot_password"
android:gravity="center"
style="@style/WhiteText" />
<Button
android:id="@+id/enter"
android:background="@drawable/sigin_button_background"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/forgot_password"
android:layout_centerHorizontal="true"
android:layout_marginStart="@dimen/inputs_block_margin_left_right"
android:layout_marginEnd="@dimen/inputs_block_margin_left_right"
android:layout_marginTop="@dimen/signin_button_margin_top"
android:textColor="@android:color/white"
android:text="@string/enter_text" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/enter"
android:orientation="horizontal">
<TextView
android:id="@+id/no_account"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/no_account_margin_left"
android:layout_marginTop="@dimen/no_account_margin_top"
android:text="@string/no_account"
style="@style/GrayText"/>
<TextView
android:id="@+id/check_in"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/check_in_margin_left"
android:layout_marginTop="@dimen/no_account_margin_top"
android:text="@string/check_in"
style="@style/WhiteText" />
</LinearLayout>
</RelativeLayout>
한 가지 추가 할 숨기기/코드에서 버튼으로 스크롤 할 필요가 키보드를 두 번 누르면 키보드가 닫히고 닫히고 키보드가 닫히면 닫히고 표시됩니다. – param
그리고 한 가지 더 ... 아래쪽에 검은 색 부분이없는이 이미지 만 트럭의 이미지 만 있습니다 – blood73