通知onCLick功能

时间:2018-08-18 09:16:35

标签: javascript android firebase android-studio

代码

        <activity
        android:name=".Chat"
        android:label=""
        android:parentActivityName=".HomeScreen">
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.appmaster.akash.messageplus.HomeScreen" />
        <intent-filter>
            <action android:name="com.appmaster.akash.messageplus_TARGET_NOTIFICATION" />
        </intent-filter>
    </activity>

清单

onclick

horizontalScrollView (HorizontalScrollView)findViewById(R.id.horizontal_grid); int[] images = new int[]{R.drawable.image1, R.drawable.image2, ....R.drawable.image10}; LinearLayout sv = (LinearLayout) findViewById (R.id.horizontal_container); for (int i=0 ; i<images.length; i++){ ImageView iv = new ImageView (this); LinearLayout.LayoutParams imageViewLayoutParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); iv.setPadding(4,0,0,0); iv.setImageResource(images[i]); iv.setLayoutParams(imageViewLayoutParams); sv.addView(iv); } 功能由于某些原因而无法正常工作...我认为我没有错过任何东西或可能忘记了...

0 个答案:

没有答案