ScrollView http://dl.dropbox.com/u/3216968/ScrollView%20problem.pngMastering sur mesure ScrollView
J'ai un ScrollView qui contient un LinearLayout. J'ai deux personnalisations que je veux implémenter.
[1] Comment supprimer l'ombre noire sur le dessus? J'ai essayé de regarder Why is my List black Android mais c'est seulement pour le ListView et parler de l'arrière-plan. Lorsque j'essaie de faire une animation de secousse pour LinearLayout, l'animation n'est pas affichée en dehors des lignes. Avoir essayé tant de choses différentes et commencent à penser que ce n'est pas possible.
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView_response"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:background="@color/transparent"
android:fillViewport="true"
android:fadingEdge="none" >
<LinearLayout android:id="@+id/LinearLayout_response"
android:background="@drawable/background_red"
android:orientation="vertical"
android:layout_width="match_parent" android:layout_height="match_parent"
android:minWidth="270dp"
>
Ce code d'activité
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.manual_resonse_layout);
Animation shakeIn = AnimationUtils.loadAnimation(this, R.anim.shake_in);
LinearLayout mainView = (LinearLayout) findViewById(R.id.LinearLayout_response);
mainView.startAnimation(shakeIn);
Il a été mis à "none" (voir mon exemple de code) et il est toujours là .. – Norfeldt