Soru & Cevap

bir fragmentte textviewe scroll ekliyorum olmuyor nedendir? ...

18.02.2015 - 02:08

xml dosyam

[code]

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal">

    <TextView
        android:id="@+id/editText1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_marginLeft="5dp"
        android:layout_marginRight="5dp"
        android:layout_marginTop="20dp"
        android:ems="10"
        android:maxLines="35"
        android:scrollbars="vertical"
        android:text="@string/htk" />
  
</RelativeLayout>

[/code]

 

fragment classım buraya çeşitli şeyler denedim ama bi türlü olmadı

[code]

package com.dpFaa.acikogretim;


import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class FragmentHtk extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        View view = inflater.inflate(R.layout.htk_fragment, container,false);
    
        
        return view;
         
    }

    
     
}

[/code]

6 Görüntülenme

1 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

Profile picture for user gokhan_t
gokhan_t
18.02.2015 - 02:17

Textview a scroll eklemek yerine, scrollview a textview eklesen daha iyi bir çözüm olur