13d0124f1764e57b18161b833b52964f3141243d1Doug Felt/* 23d0124f1764e57b18161b833b52964f3141243d1Doug Felt * Copyright (C) 2011 The Android Open Source Project 33d0124f1764e57b18161b833b52964f3141243d1Doug Felt * 43d0124f1764e57b18161b833b52964f3141243d1Doug Felt * Licensed under the Apache License, Version 2.0 (the "License"); 53d0124f1764e57b18161b833b52964f3141243d1Doug Felt * you may not use this file except in compliance with the License. 63d0124f1764e57b18161b833b52964f3141243d1Doug Felt * You may obtain a copy of the License at 73d0124f1764e57b18161b833b52964f3141243d1Doug Felt * 83d0124f1764e57b18161b833b52964f3141243d1Doug Felt * http://www.apache.org/licenses/LICENSE-2.0 93d0124f1764e57b18161b833b52964f3141243d1Doug Felt * 103d0124f1764e57b18161b833b52964f3141243d1Doug Felt * Unless required by applicable law or agreed to in writing, software 113d0124f1764e57b18161b833b52964f3141243d1Doug Felt * distributed under the License is distributed on an "AS IS" BASIS, 123d0124f1764e57b18161b833b52964f3141243d1Doug Felt * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 133d0124f1764e57b18161b833b52964f3141243d1Doug Felt * See the License for the specific language governing permissions and 143d0124f1764e57b18161b833b52964f3141243d1Doug Felt * limitations under the License. 153d0124f1764e57b18161b833b52964f3141243d1Doug Felt */ 163d0124f1764e57b18161b833b52964f3141243d1Doug Feltpackage com.android.bidi; 173d0124f1764e57b18161b833b52964f3141243d1Doug Felt 183d0124f1764e57b18161b833b52964f3141243d1Doug Feltimport android.app.Fragment; 193d0124f1764e57b18161b833b52964f3141243d1Doug Feltimport android.os.Bundle; 203d0124f1764e57b18161b833b52964f3141243d1Doug Feltimport android.view.LayoutInflater; 213d0124f1764e57b18161b833b52964f3141243d1Doug Feltimport android.view.View; 223d0124f1764e57b18161b833b52964f3141243d1Doug Feltimport android.view.ViewGroup; 233d0124f1764e57b18161b833b52964f3141243d1Doug Feltimport android.widget.Gallery; 243d0124f1764e57b18161b833b52964f3141243d1Doug Felt 253d0124f1764e57b18161b833b52964f3141243d1Doug Feltpublic class BiDiTestGalleryLtr extends Fragment { 263d0124f1764e57b18161b833b52964f3141243d1Doug Felt 273d0124f1764e57b18161b833b52964f3141243d1Doug Felt @Override 283d0124f1764e57b18161b833b52964f3141243d1Doug Felt public View onCreateView(LayoutInflater inflater, ViewGroup container, 293d0124f1764e57b18161b833b52964f3141243d1Doug Felt Bundle savedInstanceState) { 303d0124f1764e57b18161b833b52964f3141243d1Doug Felt View v = inflater.inflate(R.layout.gallery_ltr, container, false); 313d0124f1764e57b18161b833b52964f3141243d1Doug Felt Gallery g = (Gallery) v.findViewById(R.id.galleryview); 323d0124f1764e57b18161b833b52964f3141243d1Doug Felt g.setAdapter(new BiDiTestGalleryImages(this.getActivity().getBaseContext())); 333d0124f1764e57b18161b833b52964f3141243d1Doug Felt return v; 343d0124f1764e57b18161b833b52964f3141243d1Doug Felt } 353d0124f1764e57b18161b833b52964f3141243d1Doug Felt} 36